﻿using System;
using System.Collections.Generic;

using WebDavProcessor.Constants;

namespace WebDavProcessor.Resources
{
    public class WebDavProperty
    {
        private string propertyName;
        private object propertyValue;
        private int propertyStatus;

        public string Name { get { return propertyName; } set { propertyName = value; } }
        public object Value { get { return propertyValue; } set { propertyValue = value; } }
        public int Status { get { return propertyStatus; } set { propertyStatus = value; } }

        public WebDavProperty(string name, object value, int status)
        {
            propertyName = name;
            propertyValue = value;
            propertyStatus = status;
        }
        public WebDavProperty(string name, object value)
        {
            propertyName = name;
            propertyValue = value;
            propertyStatus = WebDavStatusCodes.OK;
        }
    }
}
